package com.mym.demo;

import com.mym.domain.Rectangle;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/9 11:31
 * @description
 */
public class Test1 {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setLength(4);
        rectangle.setHieght(2);
        System.out.println(rectangle.getArae());
        System.out.println(rectangle.getPerimeter());
        rectangle.setLength(rectangle.getLength()*2);
        rectangle.setHieght(rectangle.getHieght()*2);
        System.out.println(rectangle.getinfo());

    }
}
